<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>用户注册</title>
    
    <link rel="stylesheet" type="text/css" href="css/login_style.css">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body >

    <section class="container" >
    <div class="login">
      <h1>用户注册</h1>
      <form method="post" action="/hnust/Register" >
        <p><input type="text"  name="stuNum"  id="userAccount" value="" placeholder="学号"></p>
        <p><input type="password" name="password" id="userPassword" value="" placeholder="教务网密码"></p>
        <p><input type="password" name="repassword" id="userPassword" value="" placeholder="验证密码"></p>
        <p><input type="text"  name="stuName"  id="userAccount" value="" placeholder="姓名"></p>
        <p><input type="text"  name="stuIdNum"  id="userAccount" value="" placeholder="身份证号"></p>
        <p><input type="text"  name="stuClass"  id="userAccount" value="" placeholder="班级"></p>
        <p class="remember_me">
<%
	String mess = (String)request.getSession().getAttribute("register_message");         // 获取错误属性
	if(mess != null) {
		out.println("<font color='red'>"+mess+"</font>");
	}
%>
        </p>
        <p class="submit"><input type="submit" name="commit" value="注册"></p>

      </form>
    </div>
    <div class="login-help">
    <p><a href="index.jsp">已有账号？点击登录 </a></p>
    </div>
  </section>
<div style="text-align:center;">
	<p>Powder by:<a href="http://blog.sina.com.cn/ariceone" target="_blank">Arice</a></p>
</div>
  </body>
  
</html>